﻿<UserControl x:Class="Babylon.Toolbox.Sample.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="{StaticResource BackColorBrush}" MouseMove="drawingSurface_MouseMove">
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <DrawingSurface  Name="drawingSurface" Draw="DrawingSurface_Draw"/>
        <StackPanel Name="waitBar" VerticalAlignment="Center" Visibility="Collapsed">
            <TextBlock Text="Loading...Please wait" HorizontalAlignment="Center"/>
            <ProgressBar Height="10" Minimum="0" Maximum="100" Margin="20, 10" Name="waitProgressBar"/>
        </StackPanel>

        <Grid x:Name="StatusBar" Grid.Row="1" Background="{StaticResource StatusBarBrush}" Height="30">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <RadioButton Content="Arc rotate" Grid.Column="0" Margin="10,5" x:Name="arcRotateButton" Click="arcRotateButton_Click" IsChecked="True"/>
            <RadioButton Content="Object picking" Grid.Column="1" Margin="10,5" x:Name="objectPickingButton" Click="objectPickingButton_Click"/>
            <TextBlock x:Name="counters" FontFamily="Segoe UI" FontSize="11" Margin="5" Grid.Column="3"/>
            <TextBlock x:Name="frameTime" FontFamily="Segoe UI" FontSize="11" Margin="5" Grid.Column="4"/>
        </Grid>
    </Grid>
</UserControl>
